Integrand size = 14, antiderivative size = 55 \[ \int \frac {\cos ^3\left (a+b x^2\right )}{x} \, dx=\frac {3}{8} \cos (a) \operatorname {CosIntegral}\left (b x^2\right )+\frac {1}{8} \cos (3 a) \operatorname {CosIntegral}\left (3 b x^2\right )-\frac {3}{8} \sin (a) \text {Si}\left (b x^2\right )-\frac {1}{8} \sin (3 a) \text {Si}\left (3 b x^2\right ) \]
[Out]
Time = 0.10 (sec) , antiderivative size = 55, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {3485, 3459, 3457, 3456} \[ \int \frac {\cos ^3\left (a+b x^2\right )}{x} \, dx=\frac {3}{8} \cos (a) \operatorname {CosIntegral}\left (b x^2\right )+\frac {1}{8} \cos (3 a) \operatorname {CosIntegral}\left (3 b x^2\right )-\frac {3}{8} \sin (a) \text {Si}\left (b x^2\right )-\frac {1}{8} \sin (3 a) \text {Si}\left (3 b x^2\right ) \]
[In]
[Out]
Rule 3456
Rule 3457
Rule 3459
Rule 3485
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {3 \cos \left (a+b x^2\right )}{4 x}+\frac {\cos \left (3 a+3 b x^2\right )}{4 x}\right ) \, dx \\ & = \frac {1}{4} \int \frac {\cos \left (3 a+3 b x^2\right )}{x} \, dx+\frac {3}{4} \int \frac {\cos \left (a+b x^2\right )}{x} \, dx \\ & = \frac {1}{4} (3 \cos (a)) \int \frac {\cos \left (b x^2\right )}{x} \, dx+\frac {1}{4} \cos (3 a) \int \frac {\cos \left (3 b x^2\right )}{x} \, dx-\frac {1}{4} (3 \sin (a)) \int \frac {\sin \left (b x^2\right )}{x} \, dx-\frac {1}{4} \sin (3 a) \int \frac {\sin \left (3 b x^2\right )}{x} \, dx \\ & = \frac {3}{8} \cos (a) \operatorname {CosIntegral}\left (b x^2\right )+\frac {1}{8} \cos (3 a) \operatorname {CosIntegral}\left (3 b x^2\right )-\frac {3}{8} \sin (a) \text {Si}\left (b x^2\right )-\frac {1}{8} \sin (3 a) \text {Si}\left (3 b x^2\right ) \\ \end{align*}
Time = 0.16 (sec) , antiderivative size = 50, normalized size of antiderivative = 0.91 \[ \int \frac {\cos ^3\left (a+b x^2\right )}{x} \, dx=\frac {1}{8} \left (3 \cos (a) \operatorname {CosIntegral}\left (b x^2\right )+\cos (3 a) \operatorname {CosIntegral}\left (3 b x^2\right )-3 \sin (a) \text {Si}\left (b x^2\right )-\sin (3 a) \text {Si}\left (3 b x^2\right )\right ) \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 1.07 (sec) , antiderivative size = 125, normalized size of antiderivative = 2.27
method | result | size |
risch | \(\frac {i {\mathrm e}^{-3 i a} \pi \,\operatorname {csgn}\left (b \,x^{2}\right )}{16}-\frac {i {\mathrm e}^{-3 i a} \operatorname {Si}\left (3 b \,x^{2}\right )}{8}-\frac {{\mathrm e}^{-3 i a} \operatorname {Ei}_{1}\left (-3 i b \,x^{2}\right )}{16}+\frac {3 i {\mathrm e}^{-i a} \pi \,\operatorname {csgn}\left (b \,x^{2}\right )}{16}-\frac {3 i {\mathrm e}^{-i a} \operatorname {Si}\left (b \,x^{2}\right )}{8}-\frac {3 \,{\mathrm e}^{-i a} \operatorname {Ei}_{1}\left (-i b \,x^{2}\right )}{16}-\frac {3 \,{\mathrm e}^{i a} \operatorname {Ei}_{1}\left (-i b \,x^{2}\right )}{16}-\frac {{\mathrm e}^{3 i a} \operatorname {Ei}_{1}\left (-3 i b \,x^{2}\right )}{16}\) | \(125\) |
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 47, normalized size of antiderivative = 0.85 \[ \int \frac {\cos ^3\left (a+b x^2\right )}{x} \, dx=\frac {1}{8} \, \cos \left (3 \, a\right ) \operatorname {Ci}\left (3 \, b x^{2}\right ) + \frac {3}{8} \, \cos \left (a\right ) \operatorname {Ci}\left (b x^{2}\right ) - \frac {1}{8} \, \sin \left (3 \, a\right ) \operatorname {Si}\left (3 \, b x^{2}\right ) - \frac {3}{8} \, \sin \left (a\right ) \operatorname {Si}\left (b x^{2}\right ) \]
[In]
[Out]
\[ \int \frac {\cos ^3\left (a+b x^2\right )}{x} \, dx=\int \frac {\cos ^{3}{\left (a + b x^{2} \right )}}{x}\, dx \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.40 (sec) , antiderivative size = 89, normalized size of antiderivative = 1.62 \[ \int \frac {\cos ^3\left (a+b x^2\right )}{x} \, dx=\frac {1}{16} \, {\left ({\rm Ei}\left (3 i \, b x^{2}\right ) + {\rm Ei}\left (-3 i \, b x^{2}\right )\right )} \cos \left (3 \, a\right ) + \frac {3}{16} \, {\left ({\rm Ei}\left (i \, b x^{2}\right ) + {\rm Ei}\left (-i \, b x^{2}\right )\right )} \cos \left (a\right ) + \frac {1}{16} \, {\left (i \, {\rm Ei}\left (3 i \, b x^{2}\right ) - i \, {\rm Ei}\left (-3 i \, b x^{2}\right )\right )} \sin \left (3 \, a\right ) - \frac {3}{16} \, {\left (-i \, {\rm Ei}\left (i \, b x^{2}\right ) + i \, {\rm Ei}\left (-i \, b x^{2}\right )\right )} \sin \left (a\right ) \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 47, normalized size of antiderivative = 0.85 \[ \int \frac {\cos ^3\left (a+b x^2\right )}{x} \, dx=\frac {1}{8} \, \cos \left (3 \, a\right ) \operatorname {Ci}\left (3 \, b x^{2}\right ) + \frac {3}{8} \, \cos \left (a\right ) \operatorname {Ci}\left (b x^{2}\right ) - \frac {3}{8} \, \sin \left (a\right ) \operatorname {Si}\left (b x^{2}\right ) + \frac {1}{8} \, \sin \left (3 \, a\right ) \operatorname {Si}\left (-3 \, b x^{2}\right ) \]
[In]
[Out]
Timed out. \[ \int \frac {\cos ^3\left (a+b x^2\right )}{x} \, dx=\int \frac {{\cos \left (b\,x^2+a\right )}^3}{x} \,d x \]
[In]
[Out]